package com.mall.common.constant;

/**
 * @author: xrj
 * @date: 2022/4/27 22:17
 * @description:
 */
public interface ResponseConstant {

    boolean TRUE = true;
    boolean FAIL = false;
    /**
     * desc:200 响应成功
     */
    int SUCCESS = 200;

    /**
     * desc:500 响应失败
     */
    int ERROR = 500;

    /**
     * desc:201 参数校验异常
     */
    int CHECK_FAIL = 201;

    /**
     * desc:202 业务逻辑处理异常
     */
    int OPERATION_FAIL = 202;

    /**
     * desc:203 数据异常
     */
    int FAIL_DATA = 203;


    /**
     * desc:402 授权失败
     */
    int AUTHENTICATION_FAILED = 402;
    String AUTHENTICATION_FAILED_STR = "授权失败";

    /**
     * desc:403 操作权限拒绝
     */
    int OPERATION_PERMISSION_DENIED = 403;
    String OPERATION_PERMISSION_DENIED_STR = "暂无权限";

    /**
     * desc:404 数据权限拒绝
     */
    int DATA_PERMISSION_DENIED = 404;
    String DATA_PERMISSION_DENIED_STR = "暂无权限";

    /**
     * desc:406 授权成功
     */
    int AUTHENTICATION_SUCCESS = 406;

}
